import axios from 'axios'
// import {Message} from 'element-ui';

axios.interceptors.response.use(success => {
    if (success.data.code === 0) {
        return success.data;
    }
}, error => {
    alert(error);
    return;
})

export const getTest = () => {
    return axios({
        method: 'get',
        url: `http://rap2api.taobao.org/app/mock/242720/example/1578992620877`,
        data: ''
    })
}